package com.aaa.day1031demo.demo4;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年10月31日10:50
 */
public class Test {
    public static void main(String[] args) {
        Card card=new Card(0);

        Man man=new Man(card);
        Woman woman=new Woman(card);

        Thread thread1 = new Thread(man, "张三");
        Thread thread2 = new Thread(woman, "张三女朋友");

        thread1.start();
        thread2.start();
    }
}
